package com.test.rpc.common.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RpcResponse {
    private String requestId;
    private Exception exception;
    private Object result;
    public boolean hasException() {
        return exception != null;
    }
}
